# with open("day8",mode="r+",encoding="utf-8")as f:
#     content = f.read()
#     content = content.replace("您","你")
#     f.seek(0,0)
#     f.write(content)

# with open("day8",mode="r",encoding="utf-8")as f,\
# open("new_day8",mode="a",encoding="utf-8")as f1:
#     for i in f:
#         content = i.replace("你","我")
#         f1.write(content)
#
# import os
# os.remove("day8")  # 原数据可以使用rename来做备份
# os.rename("new_day8","day8")